package cn.easy.rpc.controller;

import cn.easy.rpc.context.RpcContext;
import cn.easy.rpc.core.ServiceRegistrar;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @author zwb
 * @create 2020-09-17 21:42
 **/
@RestController
public class RpcController {

    @RequestMapping("registrarList")
    private List<ServiceRegistrar> getRegistrar(){
        return RpcContext.getInstance().getDependService();
    }
}
